package com.pro.xwt.common.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pro.xwt.common.mapper.VideoResourceMapper;
import com.pro.xwt.common.model.VideoResourceEntity;
import com.pro.xwt.common.service.VideoResourceService;

@Service("videoResourceService")
public class VideoResourceServiceImpl extends AbstractService<VideoResourceEntity, String>
		implements VideoResourceService {

	@Autowired
	private VideoResourceMapper videoResourceMapper;

	// 这句必须要加上。不然会报空指针异常，因为在实际调用的时候不是BaseMapper调用，而是具体的mapper，这里为userMapper
	@Autowired
	public void setBaseMapper() {
		super.setBaseMapper(videoResourceMapper);
	}
}
